<?php
/**
 * Created by PhpStorm.
 * User: Administrator
 * Date: 2018/4/26 0026
 * Time: 下午 7:57
 */
namespace app\common\model;

use think\Model;

class Useraddress extends Model{
    /**
     * @param $addressId
     * @return array|false|\PDOStatement|string|Model
     * @throws \think\db\exception\DataNotFoundException
     * @throws \think\db\exception\ModelNotFoundException
     * @throws \think\exception\DbException
     * 根据用户addressId获取地址
     */
    public function findUserAddress($addressId){
            return self::where('id','=',$addressId)->find();
    }

}